package com.e3.sysmg.security.client;

import java.util.List;

import com.e3.sysmg.security.model.ModuleModel;
import com.e3.sysmg.security.model.ModuleQC;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ModuleRPCServiceAsync {

	void newModule(ModuleModel moduleModel, AsyncCallback<ModuleModel> callback);

	void getModulesByCondition(ModuleQC moduleQC,AsyncCallback<List<ModuleModel>> callback);

	void modifyModule(ModuleModel moduleModel, AsyncCallback<ModuleModel> callback);

	void deleteModules(List<ModuleModel> moduleModels,AsyncCallback<Void> callback);

	void getModuleChildren(ModuleModel moduleModel,	AsyncCallback<List<ModuleModel>> callback);

	void getModuleByCode(String code, AsyncCallback<ModuleModel> callback);

	void getModuleById(String id, AsyncCallback<ModuleModel> callback);

}
